package com.buybuyyi.stylistcrm.user.dao;

import com.buybuyyi.stylistcrm.user.po.UserProfile;
import stylistcrm.core.services.order.exception.BizException;
import stylistcrm.core.services.user.User;
import stylistcrm.core.services.user.profile.DesignerUserProfile;
import stylistcrm.core.services.user.profile.StylistUserProfile;

/**
 * Created by yanwc on 2016/10/8.
 */
public interface UserProfileDao {
    User getUser(long secUserId);

    /**
     * 申请注册设计师
     * @param designer
     * @return
     * @throws BizException
     */
    Boolean registerDesigner(DesignerUserProfile designer) throws BizException;

    /**
     * 申请注册搭配师
     * @param stylist
     * @return
     * @throws BizException
     */
    Boolean registerStylist(StylistUserProfile stylist) throws BizException;
}
